import type SysPermission from "@/type/entity/sys-permission.ts";

const menusList: SysPermission[] = [
    {
        id: "1",
        pid: "0",
        visible: true,
        permissionName: "用户管理",
        permissionCode: "/user",
        icon: "Home",
        permissionType: 2,
        children: [
            {
                id: "11",
                pid: "1",
                visible: true,
                permissionName: "用户新增",
                permissionCode: "/user/add",
                icon: "Home",
                permissionType: 2
            },
            {
                id: "12",
                pid: "1",
                visible: true,
                permissionName: "用户删除",
                permissionCode: "/user/delete",
                icon: "Home",
                permissionType: 2
            }
        ]
    },
    {
        id: "2",
        pid: "0",
        visible: true,
        permissionName: "角色管理",
        permissionCode: "/role",
        icon: "Role",
        permissionType: 2,
        children: [
            {
                id: "21",
                pid: "2",
                visible: true,
                permissionName: "角色新增",
                permissionCode: "/role/add",
                permissionType: 2,
                icon: "Home",
                children: [
                    {
                        id: "211",
                        pid: "21",
                        visible: true,
                        permissionName: "角色新增-1",
                        permissionCode: "/role/add1",
                        permissionType: 2,
                        icon: "Home",
                    },
                    {
                        id: "212",
                        pid: "21",
                        visible: true,
                        permissionName: "角色新增-2",
                        permissionCode: "/role/add2",
                        permissionType: 2,
                        icon: "Home",
                    }
                ]
            },
            {
                id: "22",
                pid: "2",
                visible: true,
                permissionName: "角色删除",
                permissionCode: "/role/delete",
                icon: "Home",
                permissionType: 2,
            }
        ]
    },
    {
        id: "3",
        pid: "0",
        visible: true,
        permissionName: "权限管理",
        permissionCode: "/permission",
        icon: "Permission",
        permissionType: 2,
        children: [
            {
                id: "31",
                pid: "3",
                visible: true,
                permissionName: "权限新增",
                permissionCode: "/permission/add",
                icon: "Home",
                permissionType: 2,
            }
        ]
    }
]

export default menusList